package com.xo.xodemo.mapper.db1;

import com.xo.xodemo.model.HasBeenReadModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HasBeenReadMapper {
    //根据用户名查询所有的未读消息
    List selectHasBeenRead(@Param("username") String username);
    //根据用户名，未读消息id删除未读信息
    int deleteHasBeenRead(@Param("username") String username,@Param("messageId") String messageId);
    //插入未读信息
    int addHasBeenReads(@Param("messageList")List messageList);
}
